import unittest
from item import Item
from equipment import Equipment
from human import Player
class TestItemm(unittest.TestCase):
    def test_useItem(self):
        ppl = Player(mhp=10,hp=10)
        ppl.mround = 2
        sword = Equipment(atk=10)
        sword2 = Equipment(atk=15)
        ppl.equip(sword)
        ppl.equip(sword2)
        self.assertEqual(ppl.newAtk,35)
        print ppl.myEquip
        ppl.leftEquip(sword2)
        print ppl.myEquip
        self.assertEqual(ppl.newAtk,20)

if __name__ == '__main__':
    unittest.main()
